
package jpoco.android;

import android.util.Log;

// experimental class
public class AndroidLog
	implements org.apache.commons.logging.Log
{

	public AndroidLog()
	{
		System.out.println("AndroidLog constructor called");
	}
	
	public void debug(Object arg0)
	{
		Log.i("", String.valueOf(arg0));
		System.out.println(arg0);
	}

	public void debug(Object arg0, Throwable arg1)
	{
		Log.i("", String.valueOf(arg0), arg1);
	}

	public void error(Object arg0)
	{
		Log.i("", String.valueOf(arg0));
	}

	public void error(Object arg0, Throwable arg1)
	{
		Log.i("", String.valueOf(arg0), arg1);
	}

	public void fatal(Object arg0)
	{
		Log.i("", String.valueOf(arg0));
	}

	public void fatal(Object arg0, Throwable arg1)
	{
		Log.i("", String.valueOf(arg0), arg1);
	}

	public void info(Object arg0)
	{
		Log.i("", String.valueOf(arg0));
	}

	public void info(Object arg0, Throwable arg1)
	{
		Log.i("", String.valueOf(arg0), arg1);
	}

	public boolean isDebugEnabled()
	{
		return true;
	}

	public boolean isErrorEnabled()
	{
		return true;
	}

	public boolean isFatalEnabled()
	{
		return true;
	}

	public boolean isInfoEnabled()
	{
		return true;
	}

	public boolean isTraceEnabled()
	{
		return true;
	}

	public boolean isWarnEnabled()
	{
		return true;
	}

	public void trace(Object arg0)
	{
		Log.i("", String.valueOf(arg0));
	}

	public void trace(Object arg0, Throwable arg1)
	{
		Log.i("", String.valueOf(arg0), arg1);
	}

	public void warn(Object arg0)
	{
		Log.i("", String.valueOf(arg0));
	}

	public void warn(Object arg0, Throwable arg1)
	{
		Log.i("", String.valueOf(arg0), arg1);
	}

}
